Optimal. Leaf size=33 \[ \frac{3 x}{8 a^2}+\frac{\sin (x) \cos ^3(x)}{4 a^2}+\frac{3 \sin (x) \cos (x)}{8 a^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0501656, antiderivative size = 33, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.188, Rules used = {3175, 2635, 8} \[ \frac{3 x}{8 a^2}+\frac{\sin (x) \cos ^3(x)}{4 a^2}+\frac{3 \sin (x) \cos (x)}{8 a^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3175
Rule 2635
Rule 8
Rubi steps
\begin{align*} \int \frac{\cos ^8(x)}{\left (a-a \sin ^2(x)\right )^2} \, dx &=\frac{\int \cos ^4(x) \, dx}{a^2}\\ &=\frac{\cos ^3(x) \sin (x)}{4 a^2}+\frac{3 \int \cos ^2(x) \, dx}{4 a^2}\\ &=\frac{3 \cos (x) \sin (x)}{8 a^2}+\frac{\cos ^3(x) \sin (x)}{4 a^2}+\frac{3 \int 1 \, dx}{8 a^2}\\ &=\frac{3 x}{8 a^2}+\frac{3 \cos (x) \sin (x)}{8 a^2}+\frac{\cos ^3(x) \sin (x)}{4 a^2}\\ \end{align*}
Mathematica [A] time = 0.0027006, size = 26, normalized size = 0.79 \[ \frac{\frac{3 x}{8}+\frac{1}{4} \sin (2 x)+\frac{1}{32} \sin (4 x)}{a^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.039, size = 40, normalized size = 1.2 \begin{align*}{\frac{\tan \left ( x \right ) }{4\,{a}^{2} \left ( \left ( \tan \left ( x \right ) \right ) ^{2}+1 \right ) ^{2}}}+{\frac{3\,\tan \left ( x \right ) }{8\,{a}^{2} \left ( \left ( \tan \left ( x \right ) \right ) ^{2}+1 \right ) }}+{\frac{3\,\arctan \left ( \tan \left ( x \right ) \right ) }{8\,{a}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.51192, size = 58, normalized size = 1.76 \begin{align*} \frac{3 \, \tan \left (x\right )^{3} + 5 \, \tan \left (x\right )}{8 \,{\left (a^{2} \tan \left (x\right )^{4} + 2 \, a^{2} \tan \left (x\right )^{2} + a^{2}\right )}} + \frac{3 \, x}{8 \, a^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.94281, size = 65, normalized size = 1.97 \begin{align*} \frac{{\left (2 \, \cos \left (x\right )^{3} + 3 \, \cos \left (x\right )\right )} \sin \left (x\right ) + 3 \, x}{8 \, a^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 123.222, size = 549, normalized size = 16.64 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.10106, size = 42, normalized size = 1.27 \begin{align*} \frac{3 \, x}{8 \, a^{2}} + \frac{3 \, \tan \left (x\right )^{3} + 5 \, \tan \left (x\right )}{8 \,{\left (\tan \left (x\right )^{2} + 1\right )}^{2} a^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]